package es.acaixa.agui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JScrollPane;

public class RemoverFuncionario extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					RemoverFuncionario frame = new RemoverFuncionario();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public RemoverFuncionario() {
		setTitle("Remover  Funcion\u00E1rio");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 577, 394);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel label = new JLabel("Nome");
		label.setBounds(10, 15, 46, 14);
		contentPane.add(label);
		
		textField = new JTextField();
		textField.setText("digiteNome");
		textField.setColumns(10);
		textField.setBounds(47, 12, 231, 20);
		contentPane.add(textField);
		
		JLabel label_1 = new JLabel("OU");
		label_1.setBounds(288, 15, 46, 14);
		contentPane.add(label_1);
		
		JLabel label_2 = new JLabel("CPF");
		label_2.setBounds(318, 15, 46, 14);
		contentPane.add(label_2);
		
		textField_1 = new JTextField();
		textField_1.setText("digiteCPF");
		textField_1.setColumns(10);
		textField_1.setBounds(344, 12, 106, 20);
		contentPane.add(textField_1);
		
		JButton button = new JButton("buscar");
		button.setBounds(466, 11, 89, 23);
		contentPane.add(button);
		
		JButton button_1 = new JButton("editar");
		button_1.setBounds(466, 49, 89, 23);
		contentPane.add(button_1);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(35, 46, 403, 108);
		contentPane.add(scrollPane);
		
		table = new JTable();
		scrollPane.setViewportView(table);
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
			},
			new String[] {
				"CPF", "Sele\u00E7\u00E3o", "Nome", "Nascimento"
			}
		) {
			Class[] columnTypes = new Class[] {
				String.class, Boolean.class, String.class, String.class
			};
			public Class getColumnClass(int columnIndex) {
				return columnTypes[columnIndex];
			}
		});
	}

}
